package com.h2cloud.T.TypeConverter;

/**
 * @Package: com.h2cloud.T.TypeConverter
 * @ClassName: ConversionService  类型转换抽象接口
 * @Author: h2cloud
 * @CreateTime: 2022/6/18 8:56 下午
 * @Description:
 */

public interface ConversionService {

	boolean canConvert(Class<?> sourceType, Class<?> targetType);

	<T> T convert(Object source, Class<T> targetType);
}
